
@import "~assets/css/public";

li.blog-item {
  box-sizing: border-box;
  height: 112px;
  padding: 14px 0;
  margin: 0 14px;
  border-bottom: 1px solid $theme-color-border;

  display: flex;
  justify-content: space-between;
  overflow: hidden;

  .blog-info {
    overflow: hidden;
    width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 10px;
    .blog-info-top {
      height: 18px;
      display: flex;
      align-items: center;
      font-size: 0;
      color: #999;
      a.author {
        font-size: 12px;
        margin-left: 6px;
        color: #999;
      }
      a.word-count {
        font-size: 12px;
        color: #999;
      }
      span {
        font-size: 12px;
        &:before {
          content: '·';
          display: inline-block;
          font-weight: lighter;
          color: #ccc;
          width: 12px;
          text-align: center;
          margin-right: -3px;
        }
        &.sift {
          color: #ffa03b;
        }
        &.hot {
          color: #f07272;
        }
        &.top {
          color: $theme-color;
        }
      }
      a.blog-info-userAvatar {
        display: block;
        width: 16px;
        height: 16px;
        border-radius: 16px;
        overflow: hidden;
        img {
          @include inner-img;
        }
      }
    }
    .blog-info-title {
      @include one-line-text;
      a {
        line-height: 1.2em;
        font-size: 16px;
        color: #222;
        transition: $theme-transition;

        &:hover {
          color: $theme-color;
        }
      }
    }
    .blog-info-bottom {
      a.iconfont {
        color: #aaa;
        font-size: 12px;
        margin-right: 20px;
        margin-left: 2px;
        &:before {
          color: #ddd;
        }
      }
      a.el-icon-delete {
        cursor: pointer;
      }
      a.tag {
        color: $theme-color;
        margin-right: 10px;
      }
    }
  }
  .blog-cover {
    display: block;
    width: 130px;
    height: 82px;
    border-radius: 4px;
    overflow: hidden;
    img {
      @include inner-img;
    }
  }
}
